#!/bin/bash
sudo busybox devmem 0x0c303000 32 0x0000C400
sudo busybox devmem 0x0c303008 32 0x0000C458
sudo busybox devmem 0x0c303010 32 0x0000C400
sudo busybox devmem 0x0c303018 32 0x0000C458
 modprobe can
 modprobe can_raw
 modprobe mttcan
sudo ip link set can0 type can bitrate  500000 dbitrate 2000000 berr-reporting on fd on
  
sudo ip link set can1 type can bitrate  500000 dbitrate 2000000 berr-reporting on fd on

 ip link set up can0
 ip link set up can1
exit 0